home *** CD-ROM | disk | FTP | other *** search
/ TOS Silver 2000 / TOS Silver 2000.iso / musik / MIDIFP21 / SOURCES / INCLUDE / SERVIMEM.PIF < prev   
Encoding:
Text File  |  1996-08-23  |  1.8 KB  |  56 lines

  1. /**************************************************************
  2. *
  3. *                SERVIMEM.PIF
  4. *
  5. **************************************************************/
  6.  
  7. /********************************************************************
  8. */
  9.     unsigned long read_long(unsigned char *address) ;
  10. /*
  11. * needed in order to read a long integer
  12. * from an odd address. This normally will lead to an address error. 
  13. * The function "read_long" manages this problem by reading 
  14. * byte by byte.
  15. * RETURN:  fixed length number read as 
  16. *          unsigned long integer
  17. ********************************************************************/
  18.  
  19. /********************************************************************
  20. */ 
  21.     unsigned int read_int(unsigned char *address) ;
  22. /*
  23. * needed in order to read an integer
  24. * from an odd address. This normally will lead to an address error. 
  25. * The function "read_int" manages this problem by reading 
  26. * byte by byte.
  27. * RETURN:  fixed length number read as 
  28. *          unsigned integer
  29. ********************************************************************/
  30.  
  31. /********************************************************************
  32. */
  33. unsigned int read_var_len
  34.     (
  35.     unsigned char *address, 
  36.     unsigned long *P_read_number, 
  37.     unsigned char *P_read_bytes
  38.     ) ;
  39. /*
  40. * Read a variable length number
  41. * as described in the MIDI File Specification. 
  42. * INPUT:   address:  RAM address where the variable length number
  43. *                    has to be read from
  44. * OUTPUT:  *P_read_number:  variable length number read as 
  45. *                             unsigned long integer
  46. *          *P_read_bytes:  length of variable length number 
  47. * RETURN:  0 = good, -1 = error 
  48. ********************************************************************/
  49.  
  50.